﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--语言包管理-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("system", "lanpackadd", modelpowergroup))
      { %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_lanpackadd}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanPackAdd) %>?tab=true&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_lanpackadd}" hidefocus="true">_{botton_add_lanpackadd}</a></li>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" hidefocus="true">_{selAll_botton}</a></li>
	<li class="menumain"><a id="bolt" href="#body" hidefocus="true" hidefocus="true">_{bolt_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{languagepack_add_typeid}</span>
				<ul id="modeltablist">
					<li><a class="menunoclick" id="typeid0" href="#body" onclick="javascript:dbfilter('typeid','typeid',0,0,7,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
                    <% var lanpacklist = v.data("lanpacklist") as List<LanPackType>; %>
                    <% for (int i = 0; i < lanpacklist.Count; i++){ %>
					<li><a class="menuclick" id="typeid<%=i+1 %>" href="#body" onclick="javascript:dbfilter('typeid','typeid','<%=lanpacklist[i].Id %>',<%=i+1 %>,7,'selectform','selectall','check_all')" title="<%=lanpacklist[i].Name %>" hidefocus="true"><%=lanpacklist[i].Name %></a></li>
					<%} %>
				</ul>
			</li>
			<li><span class="menufont">_{languagepack_lockin_botton}</span>
				<ul>
					<li><a class="menunoclick" id="lockin0" href="#body" onclick="javascript:dbfilter('lockin','lockin',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="lockin1" href="#body" onclick="javascript:dbfilter('lockin','lockin',1,1,3,'selectform','selectall','check_all')" title="_{languagepack_lockin_botton1}" hidefocus="true">_{languagepack_lockin_botton1}</a></li>
					<li><a class="menuclick" id="lockin2" href="#body" onclick="javascript:dbfilter('lockin','lockin',2,2,3,'selectform','selectall','check_all')" title="_{languagepack_lockin_botton2}" hidefocus="true">_{languagepack_lockin_botton2}</a></li>
				</ul>
			</li>
		</ul>
	</li>
    <%if (bllPowerGroupService.powercheck("system", "lanpackdel", modelpowergroup))
      { %>
	<li class="menumain"><a id="del" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanPackDel) %>','selectinfoid',false,null,null,'#{load}','_{del_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{del_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
</ul>